package com.czxy.enterprise.controller;


import com.czxy.enterprise.service.EnNatureService;
import com.czxy.findjob.vo.BaseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 企业性质表 前端控制器
 * </p>
 *
 * @author xuewen
 * @since 2022-01-27
 */
@RestController
@RequestMapping("/nature")
public class EnNatureController {
    @Autowired
    private EnNatureService enNatureService;
    @GetMapping("/findAll")
    public BaseResult findAll(){
        return BaseResult.ok("查询成功",enNatureService.list());
    }
}

